<?php
/**
 * CreateTime: 2022/5/1 15:32
 */

namespace App\Http\Requests\Client;

use App\Http\Requests\BaseRequests;

class AddClientCreditPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'client_evaluation_form_str' => "required",
            'client_industry_type' => "required",
            'a_ratio' => "required",
            'b_ratio' => "required",
            'c_ratio' => "required",
            'd_ratio' => "required",
        ];
    }

    public function messages()
    {
        return [
            'client_evaluation_form_str.required' => "评价表单不能为空",
            'client_industry_type.required' => "客户类型不能为空",
            'a_ratio.required' => "A类客户评价系数不能为空",
            'b_ratio.required' => "B类客户评价系数不能为空",
            'c_ratio.required' => "C类客户评价系数不能为空",
            'd_ratio.required' => "D类客户评价系数不能为空",
        ];
    }


}